#ifndef _DHT11_H_
#define _DHT11_H_

#include <stdint.h>
#include "stm32f4xx.h"                  // Device header


//extern volatile uint8_t humi;
//extern volatile uint8_t temp;

#if 0
void DHT11_Mode_Set(uint8_t mode);

uint8_t DHT11_Init(void);

uint8_t DHT11_ReadBit(void);

uint8_t DHT11_ReadByte(void);

uint8_t DHT11_ReadData(uint8_t *humi, uint8_t* temp);
#else
int Start_ask(void);

int DHT11_WORK(uint8_t *humi,uint8_t *temp);
#endif



#endif	/* _DHT11_H_ */
